import { defineStore } from "pinia"
import { ref } from "vue"

export const useMessageStore = defineStore("messageStore", () => {
  const messageType = ref("")

  const setMessageType = (type) => {
    messageType.value = type
  }
  const clearMessageType = () => {
    messageType.value = ""
  }
  return {
    messageType,
    setMessageType,
    clearMessageType
  }
})
